﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DrawingCore;

namespace testDraw
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            init();
        }

        private void init(){
            canvas1.Height = 1000;
            canvas1.Width = 2000;
            canvas1.Background = Brushes.SeaGreen;
            
            //FullScreenHelper.GoFullScreen(this);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            canvas1.Tool = ToolType.Pointer;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            canvas1.Tool = ToolType.Ellipse;
        }

        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Escape)
            {
                FullScreenHelper.ExitFullScreen(this);
                System.Environment.Exit(0);
            }
        }

    }
}
